<template>
  <div>
    <el-carousel indicator-position="none" class="carousel" height="700px" :interval='5000'>
      <el-carousel-item class="carousel" v-for="item in swiperList" :key="item.index">
        <el-image class="img" :src="item.url" fit="cover">
          <div slot="placeholder" class="image-slot">
            加载中<span class="dot">...</span>
          </div>
        </el-image>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: 'HomeSwiper',
  data () {
    return {
      swiperList: [
        {
          'index': 1,
          'url': 'https://minedates.oss-cn-hangzhou.aliyuncs.com/station/bg/04.jpg'
        }, {
          'index': 2,
          'url': 'https://minedates.oss-cn-hangzhou.aliyuncs.com/station/bg/06.jpg'
        }, {
          'index': 3,
          'url': 'https://minedates.oss-cn-hangzhou.aliyuncs.com/station/bg/08.jpg'
        }, {
          'index': 4,
          'url': 'https://minedates.oss-cn-hangzhou.aliyuncs.com/station/bg/07.jpg'
        }, {
          'index': 5,
          'url': 'https://minedates.oss-cn-hangzhou.aliyuncs.com/station/bg/05.jpg'
        }]
    }
  }
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}
.img {
  height: 650px;
}
</style>
